package com.example.xucheng_security.auth.feignClinent;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @description TODO
 * @author Mr.M
 * @date 2022/10/20 15:50
 * @version 1.0
 */
// 使用nacos的服务名
 @FeignClient(value = "xuechengCheckCode",fallbackFactory = CheckCodeClientFactory.class)
 //请求地址和远程调用的地址、方法要相同
public interface CheckCodeClient {

 @PostMapping(value = "/verify")
 public Boolean verify(@RequestParam("key") String key,@RequestParam("code") String code);

}
